    
@extends('layout.master')
@section('content')

  
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title  am-cf">未审核商家列表</div>


</div>
<div class="widget-body  am-fr">



        
        <form action="/sogo" method="get" class="form-inline">
              <div class="form-group">
                <label for="exampleInputName2">关键字:</label>
                <input type="text" name="name" class="form-control" id="exampleInputName2" placeholder="名称">
              </div>
              <button type="submit" class="btn btn-default">搜索</button>
        </form>

        <div class="am-u-sm-12">
        <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
        <thead>
        <tr>
        <th>商家id</th>
        <th>商家名称</th>
        <th>商家照片</th>
        <th>地址</th>
        <th>操作</th>
        </tr>
        </thead>


        <tbody>

        @foreach($sogos as $mer)

        <tr class="gradeX">
        <td>{{$mer->id}}</td>
        <td>{{$mer->name}}</td>
        <td><img src="/{{$mer->photo}}" height="100"></td>
        <td>{{$mer->address}}</td>
        <td>
            <div class="tpl-table-black-operation">
                <a href="/aa1/{{$mer->id}}">
                    <i class="am-icon-pencil" ></i> 详情
                </a>
               
                
                
            </div>
        </td>
        </tr>
        @endforeach


            <!-- more data -->
            </tbody>
            </table>
            </div>
            
            <div class="dataTables_info" id="DataTables_Table_0_info" role="status" aria-live="polite" style="float:right;">
            {!! $sogos->appends($where)->render() !!}
            </div>
            

    </div>
</div>


@endsection